import request from '@/utils/request'

// 图片/文件上传
export function fileUpload(file, type) {
  return request({
    url: `/common/fileApi/file?type=${type}`,
    method: 'post',
    data: file
  })
}

// 文件下载-打包压缩包
export function downloadFile(params) {
  return request({
    url: '/common/fileApi/downloadFile',
    method: 'get',
    params
  })
}
